package com.quxian.chambercommerce.service.impl;

import java.util.List;
import java.util.Map;

import com.quxian.chambercommerce.bean.AuthorityEntity;
import com.quxian.chambercommerce.bean.StaffAuthEntity;
import com.quxian.chambercommerce.dao.StaffAuthDao;
import com.quxian.chambercommerce.service.StaffAuthService;

public class StaffAuthServiceImpl implements StaffAuthService {
	private StaffAuthDao staffAuthDao;

	public StaffAuthDao getStaffAuthDao() {
		return staffAuthDao;
	}

	public void setStaffAuthDao(StaffAuthDao staffAuthDao) {
		this.staffAuthDao = staffAuthDao;
	}

	@Override
	public List<StaffAuthEntity> getAuthByStaffId(Integer id) throws Exception {
		return staffAuthDao.getAuthByStaffId(id);
	}

	@Override
	public void deleteAuth(Map<String, Object> map) throws Exception {
		staffAuthDao.deleteAuth(map);
	}

	@Override
	public void addAuth(StaffAuthEntity entity) throws Exception {
		staffAuthDao.addAuth(entity);
	}

	@Override
	public List<AuthorityEntity> getAllAuth() throws Exception {
		return staffAuthDao.getAllAuth();
	}

}
